package com.jfinal.demo.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Title:
 * Description: 博客
 *
 * @version 2.0
 * @author: Yung Fu(FUYUNGCN AT GMAIL DOT com)
 * @since: 14-9-25 下午1:24
 */
public class Blog extends Model<Blog> {

    public final static Blog dao = new Blog();

    /**
     * 多对一
     *
     * @return User
     */
    public User getUserById() {
        return User.dao.findById(get("user_id"));
    }

}
